#ifndef _BANGAIO_UTILS_H_
#define _BANGAIO_UTILS_H_

#include <stdio.h>
#include <sys/types.h>

FILE *open_file(const char *filename,const char *mode,FILE *dashhandle,const char *errormessage);
void check_errors(u_int8_t *bytes,int length,const char *filename,int fixchecksum);
char *describe_file(u_int8_t *bytes,int length);
void write_bigendian_long(u_int32_t val,FILE *fh);
void die(char *format,...);

#endif
